
import { FFmpeg } from '@ffmpeg/ffmpeg';
import { ref } from 'vue';


const ffmpeg = new FFmpeg()
ffmpeg.load({
  coreURL: "/ffmpeg/ffmpeg-core.js",
  wasmURL: '/ffmpeg/ffmpeg-core.wasm',
  workerURL: `/ffmpeg/ffmpeg-core.worker.js`
})



export const useConvert  =()=>{


            //init
            //...





    const rawFile = ref({})

    const ffmp1= ()=>{
        rawFile.value = file
    }


    async function transcode() {

        ffmpeg.(['i',])
      }

    return {
        // ffmpeg,
        transcode,
        rawFile,
        ffmpeg
    }
}